<?php $this->load->view('common/head_open'); ?>


<script type="text/javascript">
$(document).ready(function(){
password=$("#password");
	reconfirming_password=$("#reconfirming_password");
	$(password).keyup(function()
	{
		$('.error').html(checkStrength($(this).val()));
		
	});
	$(reconfirming_password).keyup(function()
	{
		if($(this).val() != $(password).val())
		{
			$(".error").html("<?php if(isset($javscript_error['password_not_match'])) echo $javscript_error['password_not_match']  ?>");
	        $(this).focus();
	        return false;
		}
		else{
			$(".error").html('');
		}
	});
$("#password").focusout(function(){
		$('.error').html('');
		if($(this).val()=='')	
		{
			$(".error").html("<?php if(isset($javscript_error['password'])) echo $javscript_error['password']  ?>");
	       // $(this).focus();
	        return false;
		}
	});
	$("#reconfirming_password").focusout(function(){
		if($(this).val()=='')	
		{
			$(".error").html("<?php if(isset($javscript_error['re_password'])) echo $javscript_error['re_password']  ?>");
	        //$(this).focus();
	        return false;
		}
	});
	
$("#join_as_continue").click(function(){
	
   if(password.val()=='')
	{
		$(".error").html('<samp>*</samp>'+"<?php if(isset($javscript_error['password'])) echo $javscript_error['password']  ?>");
		password.focus();
		return false;
	}
	else if(reconfirming_password.val()==''||reconfirming_password.val()==null)
	{
		$(".error").html('<samp>*</samp>'+"<?php if(isset($javscript_error['re_password'])) echo $javscript_error['re_password'] ?>");
		reconfirming_password.focus();
		return false;
	}
	else if(reconfirming_password.val()!=password.val())
	{
		$(".error").html('<samp>*</samp>'+"<?php if(isset($javscript_error['password_not_match'])) echo $javscript_error['password_not_match']  ?>");
		reconfirming_password.focus();
		return false;
	}
	else if(password.val().length < 8)
			{
				$(".error").html("<?php if(isset($javscript_error['min_password_length'])) echo $javscript_error['min_password_length']  ?>");
				password.focus();
				return false;
			}
	else
	{
		$("#reset_form").submit();
	}
	
  });
});
</script>


<?php $this->load->view('common/head_close'); ?>
<!--wrapper starts-->
<section class="wrapper">
	<!--header starts-->
	<?php $this->load->view('common/header'); ?>
	<!--header closed-->
	<!--Container starts-->
	<div class="container-fluid">
		<section class="Container" style="padding-left: 96px; padding-right: 170px;">
			<h1>Forgot Password</h1>
			<!--information starts-->
			<div class="col-md-10 col-sm-10 col-lg-10 col-xs-12 zero-padding">
				<div class="information">
					<!--information_inner starts-->
					<div class="information_inner">
	<!--member_join_in starts-->
	<div class="go_back">
		<a href="<?php echo base_url().BASE; ?>dashboard" title="<?php echo $static_info['go_back'] ?>"> </a>
	</div>
	<?php echo form_open(base_url().BASE.'confirm_reset_password',array('id'=>'reset_form', 'method'=> 'post', 'autocomplete'=>'off')); ?>
		<div class="member_join_in">
			<input type="password" class="form-control textfield pink color1" autocomplete="off" id="password" name="password" placeholder="New Passsword">
			<input type="password" class="form-control textfield pink color1" autocomplete="off" id="reconfirming_password" name="reconfirming_password" placeholder="Confirm Password">
            <input type="hidden" name="reset_email" value="<?php if(isset($reset_email) && $reset_email!=''){echo $reset_email;} ?>" />
		</div>
		<div class="member_join_as button-margin">
			<div class="submit_btn2">
				<input type="button" name="join_as_continue" id="join_as_continue" value="" class="Submit">
			</div>
		</div>
	<?php echo form_close(); ?>
	<!--member_join_in closed-->
	<!--error box starts-->
	<?php $this->load->view('common/error_msg'); ?>
	<!--error box closed-->
</div>
					<!--information_inner closed-->
					<!--information_nav starts-->
					<?php $this->load->view('common/information_nav'); ?>
					<!--information_nav closed-->
					<div class="clear"></div>
				</div>
			</div>
			<!--information closed-->
			<!--information_aside starts-->
			<?php $this->load->view('common/information_aside'); ?>
			<!--information_aside closed-->
			<div class="clear"></div>
		</section>
	</div>
	<!--Container closed-->
</section>
<!--wrapper closed-->
<?php $this->load->view('common/footer'); ?>